import 'package:easy_refresh/easy_refresh.dart';
import 'package:enter_prise_web/app.dart';
import 'package:enter_prise_web/util/date_time.dart';
import 'package:flutter/material.dart';
import 'package:flutter_animate/flutter_animate.dart';


void main() async {
  Animate.restartOnHotReload = true;
  WidgetsFlutterBinding.ensureInitialized();
  // await FlutterDownloader.initialize(debug: true);
  EasyRefresh.defaultHeaderBuilder = () {
    String now = TimeOfDayToString(TimeOfDay.now());
    return ClassicHeader(
        safeArea: false,
        dragText: "下拉刷新",
        armedText: "松开刷新",
        readyText: "正在刷新",
        processedText: "刷新完成",
        failedText: "刷新失败",
        messageText: "更新于 $now",
        messageStyle: const TextStyle(color: Colors.green));
  };
  runApp(const app());
}
